<template>
	<view :style="`width: 100%;background-color: ${backgroundColor};display: flex;border-radius: 5px;height: 40px;align-items: center;justify-content: space-between;margin: 0 auto;margin-top: 10px;
		`" @click="viewclick">
		<view>
			<uni-icons :type="icon" size="16" style="margin-right: 10px;margin-left: 10px;"></uni-icons>
			<text style="font-size: 14px;">{{text}}</text>
		</view>
		<view>
			<uni-icons type="forward" size="16"></uni-icons>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			text: String,
			backgroundColor: {
				type: String,
				default: '#fff'
			},
			icon: {
				type: String,
				default: 'list'
			},

		},
		data() {

			return {

			}
		},
		methods: {
			viewclick() {
				console.log(1)
				this.$emit('tabclick', '')
			}
		}
	}
</script>

<style>

</style>
